import http from "@/api/config";
import { root } from "../config";

/**
 * 新增广告
 * @param prefix //
 * @param callback
 */
const getListByType = (type=0, location=0,number, callback) => {
  var url = root + "/Advertising/getListByType";

  let data = new FormData();
  data.append("type", type);
  data.append("location", location);
  data.append("number", number);

  http.post(url, data).then(res => {
    callback(res.data);
  });
};


export { getListByType};
